<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>优品购物 - 您的在线购物天堂</title>
  <style>
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      font-family: 'Arial', sans-serif;
    }

    body {
      background-color: #f5f5f5;
      color: #333;
    }

    header {
      background-color: #ff6b6b;
      color: white;
      padding: 1rem;
      box-shadow: 0 2px 5px rgba(0,0,0,0.1);
      position: sticky;
      top: 0;
      z-index: 100;
    }

    .navbar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      max-width: 1200px;
      margin: 0 auto;
    }

    .logo {
      font-size: 1.8rem;
      font-weight: bold;
    }

    .nav-links {
      display: flex;
      list-style: none;
    }

    .nav-links li {
      margin-left: 1.5rem;
    }

    .nav-links a {
      color: white;
      text-decoration: none;
      font-weight: 500;
      transition: color 0.3s;
    }

    .nav-links a:hover {
      color: #f0f0f0;
    }

    .search-cart {
      display: flex;
      align-items: center;
    }

    .search-cart input {
      padding: 0.5rem;
      border: none;
      border-radius: 4px;
      margin-right: 1rem;
      min-width: 200px;
    }

    .cart-icon {
      font-size: 1.2rem;
      position: relative;
      cursor: pointer;
    }

    .cart-count {
      position: absolute;
      top: -10px;
      right: -10px;
      background-color: #333;
      color: white;
      border-radius: 50%;
      width: 18px;
      height: 18px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.7rem;
    }

    .hero {
      background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://images.unsplash.com/photo-1555529669-e69e7aa0ba9a?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
      background-size: cover;
      background-position: center;
      height: 400px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      text-align: center;
      margin-bottom: 2rem;
    }

    .hero-content h1 {
      font-size: 2.5rem;
      margin-bottom: 1rem;
      text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    }

    .hero-content p {
      font-size: 1.2rem;
      margin-bottom: 1.5rem;
      text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    }

    .btn {
      display: inline-block;
      background-color: #ff6b6b;
      color: white;
      padding: 0.8rem 1.5rem;
      border-radius: 4px;
      text-decoration: none;
      font-weight: bold;
      transition: all 0.3s;
      border: none;
      cursor: pointer;
    }

    .btn:hover {
      background-color: #ff5252;
      transform: translateY(-2px);
      box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    }

    .container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 1rem;
    }

    .section-title {
      text-align: center;
      margin-bottom: 2rem;
      font-size: 1.8rem;
      color: #333;
      position: relative;
      padding-bottom: 0.5rem;
    }

    .section-title::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 50%;
      transform: translateX(-50%);
      width: 80px;
      height: 3px;
      background-color: #ff6b6b;
    }

    .products {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
      gap: 2rem;
      margin-bottom: 3rem;
    }

    .product-card {
      background-color: white;
      border-radius: 8px;
      overflow: hidden;
      box-shadow: 0 2px 10px rgba(0,0,0,0.1);
      transition: all 0.3s;
    }

    .product-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

    .product-image {
      height: 200px;
      overflow: hidden;
      position: relative;
    }

    .product-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.5s;
    }

    .product-card:hover .product-image img {
      transform: scale(1.05);
    }

    .product-badge {
      position: absolute;
      top: 10px;
      right: 10px;
      background-color: #ff6b6b;
      color: white;
      padding: 0.2rem 0.5rem;
      border-radius: 4px;
      font-size: 0.8rem;
      font-weight: bold;
    }

    .product-info {
      padding: 1.5rem;
    }

    .product-title {
      font-size: 1.1rem;
      margin-bottom: 0.5rem;
      color: #333;
    }

    .product-description {
      font-size: 0.9rem;
      color: #666;
      margin-bottom: 0.8rem;
      height: 40px;
      overflow: hidden;
    }

    .product-price {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 1rem;
    }

    .current-price {
      font-weight: bold;
      color: #ff6b6b;
      font-size: 1.2rem;
    }

    .original-price {
      text-decoration: line-through;
      color: #999;
      font-size: 0.9rem;
    }

    .add-to-cart {
      width: 100%;
      padding: 0.6rem;
      background-color: #333;
      color: white;
      border: none;
      border-radius: 4px;
      cursor: pointer;
      font-weight: bold;
      transition: all 0.3s;
    }

    .add-to-cart:hover {
      background-color: #555;
      transform: translateY(-2px);
    }

    .discount-banner {
      background-color: #ff6b6b;
      color: white;
      text-align: center;
      padding: 1rem;
      margin-bottom: 2rem;
      font-weight: bold;
      animation: pulse 2s infinite;
    }

    @keyframes pulse {
      0% { transform: scale(1); }
      50% { transform: scale(1.02); }
      100% { transform: scale(1); }
    }

    footer {
      background-color: #333;
      color: white;
      padding: 2rem 0;
      text-align: center;
    }

    .footer-content {
      display: flex;
      justify-content: space-around;
      max-width: 1200px;
      margin: 0 auto;
      flex-wrap: wrap;
    }

    .footer-section {
      flex: 1;
      min-width: 250px;
      margin-bottom: 1.5rem;
      text-align: left;
      padding: 0 1rem;
    }

    .footer-section h3 {
      margin-bottom: 1rem;
      font-size: 1.2rem;
      position: relative;
      padding-bottom: 0.5rem;
    }

    .footer-section h3::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      width: 40px;
      height: 2px;
      background-color: #ff6b6b;
    }

    .footer-section ul {
      list-style: none;
    }

    .footer-section ul li {
      margin-bottom: 0.5rem;
    }

    .footer-section a {
      color: #ddd;
      text-decoration: none;
      transition: color 0.3s;
    }

    .footer-section a:hover {
      color: white;
    }

    .social-icons {
      display: flex;
      gap: 1rem;
      margin-top: 1rem;
    }

    .social-icons a {
      color: white;
      font-size: 1.2rem;
    }

    .copyright {
      margin-top: 2rem;
      padding-top: 1rem;
      border-top: 1px solid #555;
      font-size: 0.9rem;
      color: #aaa;
    }

    @media (max-width: 768px) {
      .navbar {
        flex-direction: column;
        align-items: flex-start;
      }

      .nav-links {
        margin-top: 1rem;
        width: 100%;
        justify-content: space-between;
      }

      .nav-links li {
        margin-left: 0;
      }

      .search-cart {
        width: 100%;
        margin-top: 1rem;
      }

      .search-cart input {
        flex-grow: 1;
      }

      .hero {
        height: 300px;
      }

      .hero-content h1 {
        font-size: 1.8rem;
      }

      .footer-content {
        flex-direction: column;
      }

      .footer-section {
        text-align: center;
      }

      .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
      }

      .social-icons {
        justify-content: center;
      }
    }
  </style>
</head>
<body>
<header>
  <nav class="navbar">
    <div class="logo">优品购物</div>
    <ul class="nav-links">
      <li><a href="#">首页</a></li>
      <li><a href="#">商品分类</a></li>
      <li><a href="#">新品上市</a></li>
      <li><a href="#">促销活动</a></li>
      <li><a href="#">关于我们</a></li>
    </ul>
    <div class="search-cart">
      <input type="text" placeholder="搜索商品...">
      <div class="cart-icon">
        🛒
        <span class="cart-count">3</span>
      </div>
    </div>
  </nav>
</header>

<div class="discount-banner">
  🎉 限时特惠：全场满300减50，新用户首单立减20元 🎉
</div>

<section class="hero">
  <div class="hero-content">
    <h1>夏季清凉特卖</h1>
    <p>精选商品低至5折，限时抢购中</p>
    <a href="#" class="btn">立即选购</a>
  </div>
</section>

<div class="container">
  <h2 class="section-title">热门商品</h2>
  <div class="products">
    <div class="product-card">
      <div class="product-image">
        <img src="https://images.unsplash.com/photo-1590658268037-6bf12165a8df?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=80" alt="无线蓝牙耳机">
        <span class="product-badge">热销</span>
      </div>
      <div class="product-info">
        <h3 class="product-title">AirPods Pro 无线耳机</h3>
        <p class="product-description">主动降噪，通透模式，抗汗抗水</p>
        <div class="product-price">
          <span class="current-price">¥1,299</span>
          <span class="original-price">¥1,599</span>
        </div>
        <button class="add-to-cart">加入购物车</button>
      </div>
    </div>

    <div class="product-card">
      <div class="product-image">
        <img src="https://images.unsplash.com/photo-1523275335684-37898b6baf30?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=80" alt="智能手表">
      </div>
      <div class="product-info">
        <h3 class="product-title">Apple Watch Series 7</h3>
        <p class="product-description">全面屏设计，血氧检测，健身追踪</p>
        <div class="product-price">
          <span class="current-price">¥2,999</span>
          <span class="original-price">¥3,299</span>
        </div>
        <button class="add-to-cart">加入购物车</button>
      </div>
    </div>

    <div class="product-card">
      <div class="product-image">
        <img src="https://images.unsplash.com/photo-1601784551446-20c9e07cdbdb?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=80" alt="便携式充电宝">
        <span class="product-badge">新品</span>
      </div>
      <div class="product-info">
        <h3 class="product-title">Anker 20000mAh 充电宝</h3>
        <p class="product-description">双USB输出，支持快充，轻薄便携</p>
        <div class="product-price">
          <span class="current-price">¥199</span>
          <span class="original-price">¥259</span>
        </div>
        <button class="add-to-cart">加入购物车</button>
      </div>
    </div>

    <div class="product-card">
      <div class="product-image">
        <img src="https://images.unsplash.com/photo-1551269901-5c5e14c25df7?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=80" alt="高清网络摄像头">
      </div>
      <div class="product-info">
        <h3 class="product-title">Logitech 4K 网络摄像头</h3>
        <p class="product-description">自动对焦，HDR，内置麦克风</p>
        <div class="product-price">
          <span class="current-price">¥899</span>
          <span class="original-price">¥1,099</span>
        </div>
        <button class="add-to-cart">加入购物车</button>
      </div>
    </div>
  </div>

  <h2 class="section-title">新品上市</h2>
  <div class="products">
    <div class="product-card">
      <div class="product-image">
        <img src="https://images.unsplash.com/photo-1585771724684-38269d6639fd?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=80" alt="智能空气净化器">
        <span class="product-badge">新品</span>
      </div>
      <div class="product-info">
        <h3 class="product-title">小米空气净化器4 Pro</h3>
        <p class="product-description">高效过滤，智能互联，低噪音设计</p>
        <div class="product-price">
          <span class="current-price">¥1,299</span>
          <span class="original-price">¥1,499</span>
        </div>
        <button class="add-to-cart">加入购物车</button>
      </div>
    </div>

    <div class="product-card">
      <div class="product-image">
        <img src="https://images.unsplash.com/photo-1540932239986-30128078f3c5?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=80" alt="无线机械键盘">
      </div>
      <div class="product-info">
        <h3 class="product-title">罗技G913 无线机械键盘</h3>
        <p class="product-description">超薄设计，LIGHTSYNC RGB，低延迟</p>
        <div class="product-price">
          <span class="current-price">¥1,499</span>
          <span class="original-price">¥1,799</span>
        </div>
        <button class="add-to-cart">加入购物车</button>
      </div>
    </div>

    <div class="product-card">
      <div class="product-image">
        <img src="https://images.unsplash.com/photo-1563213126-a4273a1a99f0?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=80" alt="4K高清投影仪">
        <span class="product-badge">热销</span>
      </div>
      <div class="product-info">
        <h3 class="product-title">极米H3S 4K投影仪</h3>
        <p class="product-description">2200ANSI流明，MEMC运动补偿</p>
        <div class="product-price">
          <span class="current-price">¥5,699</span>
          <span class="original-price">¥6,299</span>
        </div>
        <button class="add-to-cart">加入购物车</button>
      </div>
    </div>

    <div class="product-card">
      <div class="product-image">
        <img src="https://images.unsplash.com/photo-1573843981267-be1999fffbfc?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=80" alt="智能扫地机器人">
      </div>
      <div class="product-info">
        <h3 class="product-title">石头T7S Plus扫地机器人</h3>
        <p class="product-description">AI避障，声波震动擦地，自动集尘</p>
        <div class="product-price">
          <span class="current-price">¥2,999</span>
          <span class="original-price">¥3,499</span>
        </div>
        <button class="add-to-cart">加入购物车</button>
      </div>
    </div>
  </div>
</div>

<footer>
  <div class="footer-content">
    <div class="footer-section">
      <h3>关于我们</h3>
      <p>优品购物成立于2015年，致力于为消费者提供高品质的商品和优质的购物体验。我们严格筛选供应商，确保每一件商品都符合高标准。</p>
      <div class="social-icons">
        <a href="#">📱</a>
        <a href="#">💬</a>
        <a href="#">📹</a>
        <a href="#">📌</a>
      </div>
    </div>

    <div class="footer-section">
      <h3>快速链接</h3>
      <ul>
        <li><a href="#">首页</a></li>
        <li><a href="#">所有商品</a></li>
        <li><a href="#">促销活动</a></li>
        <li><a href="#">会员中心</a></li>
        <li><a href="#">我的订单</a></li>
      </ul>
    </div>

    <div class="footer-section">
      <h3>客户服务</h3>
      <ul>
        <li><a href="#">联系我们</a></li>
        <li><a href="#">配送信息</a></li>
        <li><a href="#">退换政策</a></li>
        <li><a href="#">常见问题</a></li>
        <li><a href="#">隐私政策</a></li>
      </ul>
    </div>

    <div class="footer-section">
      <h3>联系我们</h3>
      <p>客服电话: 400-123-4567</p>
      <p>工作时间: 9:00-21:00</p>
      <p>邮箱: service@youpin.com</p>
      <p>地址: 北京市朝阳区科技园区88号</p>
    </div>
  </div>

  <div class="copyright">
    <p>&copy; 2023 优品购物 版权所有 | 京ICP备12345678号</p>
  </div>
</footer>
</body>
</html>